<?php

// below code is commented out so we can't use advanced search right now.
// Keep in mind when we want advanced search we should rename this file to search_advanced.php
// and e_search.php should be edited also to include the advanced search feature.

/*global $e107shop_db_name;
if (!defined('e107_INIT')) { exit; }

$search_fields = array('product_name');

// basic
$return_fields = 'product_name, active, ID';
$weights = array('1.2', '0.1', '0.1');
$no_results = LAN_198;
$where = "active=1";
$order = array('ID' => DESC);

echo $return_fields;

$ps = $sch -> parsesearch($e107shop_db_name['products'], $return_fields, $search_fields, $weights, 'search_store', $no_results, $where, $order);
$text .= $ps['text'];
$results = $ps['results'];

function search_store($row) {
    global $con;
    
    $res['link'] = e_PLUGIN."e107shop/product_details.php?product=".$row['ID'];
    $res['pre_title'] = "";
    $res['title'] = $row['product_name'];
    $res['summary'] = $row['description'];
    $res['detail'] = "";
    return $res;
}*/
